<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <#include "/common/resource.ftl">
    <script language="javascript" type="text/javascript" src="${params.contextPath}/common/My97DatePicker/WdatePicker.js"></script>
    <title>登录日志</title>
</head>
<body>
<div class="ui-operation">
    <div class="ui-buttons" style="height: 28px;">
       
        <div class="ui-searchs" style="float: left;">
	        <!-- <div class="value">
		        <span>登录时间:</span>
		        <input type="text" name="starttime" id="starttime" readonly="readonly" placeholder="yyyy-MM-dd HH:mm"
                            	onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="date" style="width:140px;"> ~
                            	<input type="text" name="endtime" id="endtime" readonly="readonly" placeholder="yyyy-MM-dd HH:mm"
                            	onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',minDate:'#F{$dp.$D(\'starttime\')}'})"
                            	class="date" style="width:140px;">
	        </div> -->
        
            <div class="value"><input type="text" name="searchInput" value="" placeholder="姓名、用户名"/></div>
            <input type="button" value="搜索" class="layui-btn layui-btn-danger search-button"/>
        </div>
    </div>
</div>
<div class="ui-content" style="padding-left: 10px;padding-right:10px;">
    <table id="datagrid" options="url:'${params.contextPath}/web/loginLog/list.json',params:'getSearchParams'">
        <thead>
			<tr>
				<th data-options="field:'policeNo',width:80">用户名</th>
                <th data-options="field:'name',width:80">姓名</th>
				<th data-options="field:'loginType',width:80">登录方式</th>
                <th data-options="field:'state',width:100,align:'left'">状态</th>
                <th data-options="field:'errorMessage',width:150,align:'left'">错误信息</th>
                <th data-options="field:'loginTimeStr',width:150,align:'left'">登录时间</th>
                <th data-options="field:'loginIp',width:100,align:'left'">客户端ip</th>
			</tr>
        </thead>
    </table>
</div>
<script>
var getSearchParams = function(){
    return {
        searchInput:$("input[name='searchInput']").val() || ""
    };
}
</script>
</body>
</html>